<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ page import = "shop.coffeeshop.master.ShopCoffeeDBBean" %>

<% request.setCharacterEncoding("utf-8");%>

<%
  int coffee_id = Integer.parseInt(request.getParameter("coffee_id"));
  String coffee_kind = request.getParameter("coffee_kind");
 
  ShopCoffeeDBBean coffeeProcess = ShopCoffeeDBBean.getInstance();
  coffeeProcess.deleteCoffee(coffee_id);

  response.sendRedirect("coffeeList.jsp?coffee_kind="+coffee_kind);
  
%>